<?php

namespace App\Http\Controllers\Home;

use App\Http\Models\Livecourse;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;

class PersonController extends Controller
{
    //显示课程列表
    public function course(Request $request){

        $livecourse = Livecourse::orderBy('start_at','desc')
            ->get();
        return view('home.person.course',compact('livecourse'));
    }
}
